package cn.idietrade.idietradegoodsmodule8002.mapper;

import cn.idietrade.common.pojo.SecondImg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SecondImgMapper {
    //保存图片
    int addImg(SecondImg secondImg);

    //查询所有图片 + 根据商品id查询对应图片
    List<SecondImg> queryImgAll(@Param("goodsId")Integer goodsId);

    //商品添加图片
    int updataImg(@Param("goodsId")Integer goodsId,@Param("list") List<Integer> list);

}
